package com.kaifamiao.charstreams;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PrintWriterTest {

    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter out = new PrintWriter( "pw.html");

        out.println( "<!DOCTYPE html>" );
        out.println( "<html>" );
        out.println( "<head>" );
        out.println( "<meta charset=\"UTF-8\">" );
        out.println( "<title>开发喵</title>" );
        out.println( "</head>" );
        out.println( "<body>" );
        out.println( "<h1>开发喵</h1>");
        out.println( "</body>" );
        out.println( "</html>" );

        out.close();
    }

}
